package com.ss.android.article.base.feature.update.activity;

import android.app.Activity;
import android.content.Context;
import android.view.View;

import com.bytedance.common.utility.UIUtils;
import com.ss.android.article.base.feature.update.a.b;
import com.ss.android.article.browser.R;

final class k implements View.OnClickListener {
    private final g a;

    k(g arg1) {
        this.a = arg1;

    }

    public final void onClick(View arg4) {
        int v0;
        if (this.a.isViewValid()) {
            if (this.a.c != null && (this.a.c.isLogin) && this.a.j != null && this.a.j.o != null && (this.a.j.o.hasBlockRelation())) {
                Activity v1 = this.a.a;
                int v2 = R.drawable.close_popup_textpage;
                if (this.a.j.o.isBlocking()) {
                    v0 = R.string.user_toast_has_blocking;
                } else if (this.a.j.o.isBlocked()) {
                    v0 = R.string.user_toast_has_blocked;
                } else {
                    v0 = 0;
                }

                UIUtils.showImageToast(((Context) v1), v2, v0);
                return;
            }

            b v0_1 = this.a.e();
            this.a.a("comment_box");
            if (this.a.r == null) {
                return;
            }

            this.a.r.a(v0_1);
        }
    }
}

